package com.jy.api.signUpReq;

import com.jy.api.domain.Order;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by xiaohua on 2018/8/8.
 */
@Data
@NoArgsConstructor
public class AdminOrderRes {

    private String orderId;

    private String paymentChannel;


    private Date createTime;


    private double amount;

    private double total;

    private double discount;

    private double removeZero;

    private String parName;

    private String numName;

    public AdminOrderRes(Order order) {
        this.orderId = order.getId();
        this.paymentChannel = order.getChannel();
        this.createTime = order.getPaymentTime();
        this.amount = order.getAmount();
        this.total = order.getTotal();
        this.discount = order.getDiscount();
        this.removeZero = order.getRemoveZero();
        this.parName=order.getPartitionName();
        this.numName=order.getNumName();
    }

}
